package com.example.demo.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "weather-service", url = "https://v2.xxapi.cn")
public interface WeatherFeignClient {

    @GetMapping("/api/weather")
    String getWeather(@RequestParam("city") String city);

}
